// SPDX-FileCopyrightText: 2026 Progmasoft // SPDX-License-Identifier: AGPL-3.0-or-later import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { CredentialsShell } from "@/components/credentials/CredentialsShell"; import { NewToken } from "@/components/credentials/NewToken"; import { isApplicationKind } from "@/lib/credentials"; import { getCredentialsMessages } from "@/lib/credentials-messages"; import { getLocale } from "@/lib/locale.server"; export async function generateMetadata(): Promise { return { title: getCredentialsMessages(await getLocale()).metadata.newToken }; } interface NewTokenFormPageProps { params: Promise<{ kind: string }>; } /** The second step of a new token: the form of the chosen type. */ export default async function NewTokenFormPage({ params, }: NewTokenFormPageProps) { const { kind } = await params; if (!isApplicationKind(kind)) { notFound(); } const locale = await getLocale(); const { kinds, portal, common } = getCredentialsMessages(locale); return (

{common.back}

); }